package com.cms.edm.feign;

import com.cms.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("cms-stu")
public interface StuFeign {

    @RequestMapping("/stu/major/info/{id}")
    R info(@PathVariable("id") Long id);

    @RequestMapping("/stu/student/infoByClassId/{classId}")
    R infoByClassId(@PathVariable("classId") Long classId);

    @RequestMapping("/stu/student/info/{id}")
    R studentInfo(@PathVariable("id") Long id);

    @RequestMapping("/stu/student/selectStudentInfoByClassId")
    R selectStudentInfoByClassId(@RequestParam("classId") Long classId, @RequestParam("studentName") String studentName);

    @RequestMapping("/stu/student/selectClassInfoByStudentIds")
    R selectClassInfoByStudentIds(@RequestParam(value = "studentIds", required = false) List<Long> studentIds);


}
